#include <cstdio>
#include <cmath>

using namespace std;
int main()
{
//	int i,j;
	double xx1,yy1,xx2,yy2,xx3,yy3,xx4,yy4,xx0,yy0, xx5,yy5;
//	freopen("ain.txt", "r", stdin);
//	freopen("aout.txt", "w", stdout);
	while (scanf("%lf%lf%lf%lf%lf%lf%lf%lf", &xx1,&yy1,&xx2,&yy2, &xx3,&yy3, &xx4, &yy4)!=EOF)
	{
//		printf("go\n");
		if (fabs(xx1-xx3)<1e-8 && fabs(yy1-yy3)<1e-8)
		{
			xx0=(xx2+xx4)/2;
			yy0=(yy2+yy4)/2;
			xx5=2*xx0-xx1;
			yy5=2*yy0-yy1;
		} else if (fabs(xx1-xx4)<1e-8 && fabs(yy1-yy4)<1e-8)
		{
			xx0=(xx2+xx3)/2;
			yy0=(yy2+yy3)/2;
			xx5=2*xx0-xx1;
			yy5=2*yy0-yy1;
		} else if (fabs(xx2-xx3)<1e-8 && fabs(yy2-yy3)<1e-8)
		{
			xx0=(xx1+xx4)/2;
			yy0=(yy1+yy4)/2;
			xx5=2*xx0-xx2;
			yy5=2*yy0-yy2;
		} else if (fabs(xx2-xx4)<1e-8 && fabs(yy2-yy4)<1e-8)
		{
			xx0=(xx1+xx3)/2;
			yy0=(yy1+yy3)/2;
			xx5=2*xx0-xx2;
			yy5=2*yy0-yy2;
		}
		printf("%.3lf %.3lf\n", xx5, yy5);
	}
	return 0;
}

